package com.liaogui;

import com.liaogui.api.UserService;
import com.liaogui.framework.protocol.HttpServer;
import com.liaogui.framework.register.LocalRegister;
import com.liaogui.service.UserServiceImpl;
import com.liaogui.service.UserServiceNewImpl;

/**
 * Hello world!
 *
 */
public class ProviderApplication
{
    public static void main( String[] args )
    {
        // 将服务注册到本地注册表中
        LocalRegister.register(UserService.class.getName(), "" ,UserServiceImpl.class);
        LocalRegister.register(UserService.class.getName(), "2.0" , UserServiceNewImpl.class);

        HttpServer.start("localhost", 8085);
    }
}
